package com.he.security.config;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.BeanDefinitionHolder;
import org.springframework.beans.factory.xml.NamespaceHandler;
import org.springframework.beans.factory.xml.ParserContext;
import org.w3c.dom.Element;
import org.w3c.dom.Node;

public final class SecurityNamespaceHandler implements NamespaceHandler {
    private final Log logger = LogFactory.getLog(getClass());


    @Override
    public BeanDefinition parse(Element element, ParserContext parserContext) {
        return null;
    }

    @Override
    public BeanDefinitionHolder decorate(Node source, BeanDefinitionHolder definition, ParserContext parserContext) {
        return null;
    }


    @Override
    public void init() {
        loadParsers();
    }


    private void loadParsers() {
        logger.info("start load parsers ....");
    }
}
